package base;
interface Imp1{
	public void myfunction();
}

public class Access {

	public void abc(Imp1 test){
		test.myfunction();
	}
	public static void main(String[] args) {
       Access ac = new Access();
       ac.abc(new Imp1(){
		public void myfunction() {
			System.out.println("hii My Function");
		}    	   
       });
	}

}
